//
//  infoEditView.m
//  garbageclient
//
//  Created by Wang Wu on 11-8-15.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "infoEditView.h"
#import "commondef.h"

@implementation infoEditView

@synthesize delegate;

- (void)dealloc
{
    [super dealloc];
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        
        CGRect screenrc = [[UIScreen mainScreen] applicationFrame];
        
        navBar = [[UINavigationBar alloc] initWithFrame: CGRectMake(0.0f, 0.0f, screenrc.size.width, NAV_HEIGHT)];
        
        [self addSubview: navBar];
        
        UINavigationItem *navItem = [[UINavigationItem alloc] initWithTitle: @"编辑"];
        
        UIBarButtonItem *leftbtn = [[UIBarButtonItem alloc] initWithTitle:@"返回" 
                                                                    style:UIBarButtonItemStylePlain
                                                                   target:self 
                                                                   action:@selector(backtoinfoview:)];
        navItem.leftBarButtonItem = leftbtn;
        [navBar pushNavigationItem:navItem animated:YES];
        
        [navItem release];
        [leftbtn release];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/



- (void)backtoinfoview:(id)sender
{
//    [delegate TurnView:INFO_VTP  withDetailsBackTp:NULL_DBTP];
}
@end
